An attempt at @underyx's method