Moved static helper methods.