btw: very nice that you factored this out.