Main control system