Updated the way that sample plate location is calculated.