Submitted version 2, remove all debug outputs.