Add Functions

Add some useful functions