Added programmatic gui and code.