Simplified event creation code