Base code for alto