Outlined solve method