Added code to show only x number of next events