Add timestamp programmatically