Refactored events and friends summoning code to improve efficiency.