Added main method and mock program behavior.