Add a new helper method, to make the design cleaner.