Added program counter reset to end of open file