Remove comments and unnecessary imports.