Removed debugging print() statement, and changed a variable name.