Added some handy utilities.