Changed timestamp data to long. Added simulator and test for concurrency control.