Added a bunch of utilities.