General refactoring work

- General refactoring to improve implementation speed.
- Allow pinning to global value sliders.