wip-153: Added support for TTL and timestamp in the writer