Added an option for pan