[untested] Added basic functionality to program.