Broken submit: wrote out most of main