Added a nice pan feature