Using parseInt to read the number
Removed debug output