Added bounds for panning