Fixed bug where timestamp was only instantiated only once.