Updated to work with new IO methods in 0.98.2