Now with a baysian-ish loop