Converted helper methods to public and static.