Sort of working solution