Maybe a bit better way of initializing the application