Changed getevents to take a limit instead of a start time