Added the timeline slider. Refactored the controller a bit.