Stripped out extra print/debug statements.