First real version of AMPX_getEvents()