Renamed checkDouble and checkInt to handleDouble and handleInt