Some new submit stuff. Also fixed input bug for output type in Compiler.