Added compiling and compilation error handling.