A method of determining a type of a container (180, 182, 184) in a rack (102, 102A, 102B) in an automated analyzer comprising a sample presentation unit, the method comprising: capturing, using an image capturing device, at least one image (340, 350, 352, 354, 356) of at least a portion of the container (180, 182, 184) and at least a portion of the rack (102, 102A, 102B), the container (180, 182, 184) being held by the rack (102, 102A, 102B); finding a reference feature (520, 522) on the rack (102, 102A, 102B) as a first image feature in the at least one image (340, 350, 352, 354, 356); defining, at least in part, a first search area in the at least one image (340, 350, 352, 354, 356) based on a first relative position to the first image feature in the at least one image (340, 350, 352, 354, 356); finding within the first search area in the at least one image (340, 350, 352, 354, 356) a first feature (530, 530A, 530B, 530C, 536A, 536B) on the container (180, 182, 184) as a second image feature in the at least one image (340, 350, 352, 354, 356); calculating a first geometric characteristic of the container (180, 182, 184) based on a location of the second image feature in the at least one image (340, 350, 352, 354, 356); and determining the type of the container (180, 182, 184) by looking up the first geometric characteristic of the container (180, 182, 184) in a table; wherein the rack (102, 102A, 102B) 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 (180, 182, 184) to the table; entering information on the new type of container (180, 182, 184); filling up the new type of container (180, 182, 184) with a wash buffer or deionized water; loading the rack (102, 102A, 102B) with the new type of container (180, 182, 184); loading the rack (102, 102A, 102B) with the new type of container (180, 182, 184) into an onload lane of the sample presentation unit of the automated analyzer; and identifying the dimensions of the rack (102, 102A, 102B) and containers therein with said image capturing device. capturing, using an image capturing device, at least one image (340, 350, 352, 354, 356) of at least a portion of the container (180, 182, 184) and at least a portion of the rack (102, 102A, 102B), the container (180, 182, 184) being held by the rack (102, 102A, 102B); finding a reference feature (520, 522) on the rack (102, 102A, 102B) as a first image feature in the at least one image (340, 350, 352, 354, 356); defining, at least in part, a first search area in the at least one image (340, 350, 352, 354, 356) based on a first relative position to the first image feature in the at least one image (340, 350, 352, 354, 356); finding within the first search area in the at least one image (340, 350, 352, 354, 356) a first feature (530, 530A, 530B, 530C, 536A, 536B) on the container (180, 182, 184) as a second image feature in the at least one image (340, 350, 352, 354, 356); calculating a first geometric characteristic of the container (180, 182, 184) based on a location of the second image feature in the at least one image (340, 350, 352, 354, 356); and determining the type of the container (180, 182, 184) by looking up the first geometric characteristic of the container (180, 182, 184) in a table; wherein the rack (102, 102A, 102B) 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 (180, 182, 184) to the table; entering information on the new type of container (180, 182, 184); filling up the new type of container (180, 182, 184) with a wash buffer or deionized water; loading the rack (102, 102A, 102B) with the new type of container (180, 182, 184); loading the rack (102, 102A, 102B) with the new type of container (180, 182, 184) into an onload lane of the sample presentation unit of the automated analyzer; and identifying the dimensions of the rack (102, 102A, 102B) and containers therein with said image capturing device. adding and verifying a new type of container (180, 182, 184) to the table; entering information on the new type of container (180, 182, 184); filling up the new type of container (180, 182, 184) with a wash buffer or deionized water; loading the rack (102, 102A, 102B) with the new type of container (180, 182, 184); loading the rack (102, 102A, 102B) with the new type of container (180, 182, 184) into an onload lane of the sample presentation unit of the automated analyzer; and identifying the dimensions of the rack (102, 102A, 102B) and containers therein with said image capturing device.