Removed debug statements.
Fixed the "segfault".