Added a bunch of helper functions I use a lot