Move initialisation outside run()