Removed unnecessary debug output and code.