Automatic engine selection