Initial commit of main controller