Inlined get_pan / set_pan