A computer controlled analysis of freezing behaviour