So I have two things I want to mention. First, can @Mike (whom I believe is responsible for writing the function) or someone explain how this function works?
@Russ do you have insight here?
Second, I think this function can be cleaned up a bit so there is a clear relationship so people can use this cool feature more. Unless its just me thats confused.