Added variable to contain slider value.