Some private functions have been created.