Made helper functions static.