Re-use utility method.