Panning functions.