Checking in a partially working get_events function