Added function to create events based on a 'day' arguement