Initial set up of application