Modified adding events functionality so that past events won’t be added.