Added reading from STDIN to spike