Calling start and end methods to execute custom rules