Refactor check_limits method