Completed functionality to delete behaviours after a specified number of triggers