Wrote core time travel logic