A method and apparatus for performing automatic analyzes