Subroutine X Performance Code Question