Made helper function static.