Added basic pan support