Updated ipewriter to use Maybe's so that we can handle errors better