Added support for adding more document fields in an event