Closes #60 program.mode is undefined