sh: Use the proper accessor functions