First pass at some IO. Won't run main yet.