I'll defer to @robhudson to review this logic