Threw a try/catch into the Pan method because it crashes sometimes