Added the starts of the stdin stuff