Extracting utility methods