Add event backend.
Complete event logic.