Added a few convinience functions