Ugly and slow.. but no global (non-working) variables...