Move get timeStamp part into the handler.