Added #ifdef DEBUG around prints