Removed fromIntegral and realToFrac calls