Created a variable for minimum events