Compiler complained about semicolongs missing after function body