A method of determining a type of a container in a rack in an automated analyzer comprising a sample presentation unit , the method comprising: capturing, using an image capturing device , at least one image of at least a portion of the container and at least a portion of the rack , the container being held by the rack ; finding a reference feature on the rack as a first image feature in the at least one image ; defining, at least in part, a first search area in the at least one image based on a first relative position to the first image feature in the at least one image ; finding within the first search area in the at least one image a first feature on the container as a second image feature in the at least one image ; calculating a first geometric characteristic of the container based on a location of the second image feature in the at least one image ; and determining the type of the container by looking up the first geometric characteristic of the container in a table ; wherein the rack is holding a plurality of containers and wherein types of additional containers of the plurality of containers are determined by looking up geometric characteristics of the additional containers in the table ; characterised by the method further comprising: adding and verifying a new type of container to the table ; entering information on the new type of container ; filling up the new type of container with a wash buffer or deionized water; loading the rack with the new type of container ; loading the rack with the new type of container into an onload lane of the sample presentation unit of the automated analyzer ; and identifying the dimensions of the rack and containers therein with said image capturing device . capturing, using an image capturing device , at least one image of at least a portion of the container and at least a portion of the rack , the container being held by the rack ; finding a reference feature on the rack as a first image feature in the at least one image ; defining, at least in part, a first search area in the at least one image based on a first relative position to the first image feature in the at least one image ; finding within the first search area in the at least one image a first feature on the container as a second image feature in the at least one image ; calculating a first geometric characteristic of the container based on a location of the second image feature in the at least one image ; and determining the type of the container by looking up the first geometric characteristic of the container in a table ; wherein the rack is holding a plurality of containers and wherein types of additional containers of the plurality of containers are determined by looking up geometric characteristics of the additional containers in the table ; characterised by the method further comprising: adding and verifying a new type of container to the table ; entering information on the new type of container ; filling up the new type of container with a wash buffer or deionized water; loading the rack with the new type of container ; loading the rack with the new type of container into an onload lane of the sample presentation unit of the automated analyzer ; and identifying the dimensions of the rack and containers therein with said image capturing device . adding and verifying a new type of container to the table ; entering information on the new type of container ; filling up the new type of container with a wash buffer or deionized water; loading the rack with the new type of container ; loading the rack with the new type of container into an onload lane of the sample presentation unit of the automated analyzer ; and identifying the dimensions of the rack and containers therein with said image capturing device . <EOS>