Documented handleLogic.