Fixed when given array of inputs
Removed debug line