Main scala