Commented out some of the debug statements to speed it up