Adding some helper methods.