added new data varying pin and introducing overlap parameter