Added end early function