Patched in further 3D support.
Added panning.