Code to create ASD Flex Test, analyze data