Adding some helper methods