Added OO to all controls so dont have to use functions with very long parameter lists.