Fixing a bug with input not being passed through to the exec command
Removing some debug code