Added some code trying to debug the timestamp looping issue, still can't figure it out