When my nasty code works on first try