Move the method to utilities.