Make Event working function