Corrected compile time errors