Add some useful functions to control library