Code audit of remaining IO code and Math