Removed some unneeded test code and print lines.