Merge init and init_app