Commented the code and deleted some unused code.