Made meassurements and variable pin choice work.