Crude Working code
Final Event Management Code