Refactored check_for_limbo() to reduce tabbing.