Added ability to use custom timestamps.