Added a bunch of functions