Added a utility method.