Further implementation of bay position calculator