Start of sample analysis script