Remove debug print.
Simplify code for readability.