Added event when an entity is being created.