Created OBSliderDelegate with optional functions.
Cleaned up code for consistency.