Set cause when event is created.