Building the application flow