Moved check_int() from data.py to core.py