Added the program step counters as suggested by Prof. Gruner. [UNTESTED]