Add error checking to conversions module