Prepared to handle events from data repository.
Moved method further down.