Some helper method.