SWEET. stdin input figured out.

Albeit with a ton of handholding.