Removed some print statements; fixed crash.