Possibly working solution