First iteration with base code