Start of BMI script