Converted the Application bits to Typescript.