some extern->local; args 4 time & state; Mem Mgmt
Working towards fewer external variables