Added lastEvent factory. Fixes #7