Added Pan support