Started code for main interface