Added slider handling experimental code.