Added app constructor.