Removed debug print lines and unused variables and imports.