Added a few new helper methods.