Clean version of console program.