Uniform events code layout