7.8 Explanation of Subroutines: Internal Variable Management Routines