Left some debug statements in. I removed them.