Fixed bug created when removing NSLogs