with deft skill , he pulled up the necessary code modifications , located the necessary subroutines within the users cognitive function array , and quickly swapped out the key code portions with the modified code .