Initial working version with triggered event caching