Adding time slider, fixing time bugs