Moved the compare_int to utils