Made script run with input from stdin