Changed name of parameter to "pan" due to feedback