Added version number and output switch.