Changed parameter names to not shadow global scope
Removed debug statement
Removed unused import