Now loc has to be unique, else error will be thrown.