Good idea. I'll abstract that out into a function.