Added a couple helper methods.