Added Slider control and fixed some minor bugs.