Added event object to fireEvent method as second parameter