Added some utility methds.