This is a different solution than you suggested before (I think?).