Added pan method.