Added App.Mode. ref #129