Debugged for compiling