Added a few helper methods.