Brutal solving works, butt-ugly as it is.