Refactored events getter to handle repetition