Add init_app method, pass app later