Change interface of Application.Run() to return an int for main().