Updated main_lcontroller