A little bit of unsafePerformIO goes a long way