Blessing of Man code. Not really tested.