Controller main