Removed some debugging output lines, because they are not needed and may have been contributing to segfault