Added function to fire event using env vars for event data