I just talked to @jasondhales and we identified that this function is possibly a bit complex.  We talked about a few options for fixing it and he was going to talk to @novasr about it...