Function properly in origin 0 as well as origin 1.