Removed old potentiometer code