Initialize app
Merge existing code