Added debugging console output to track down a segfault. Leaving the debugging prints for another team member