Added more code for compiling statements