Added main to run high level application.