Added some new helper methods.