I think there was some incorrect logic goin down here. I kinda pasted over it, but somebody familiar with the content should probably double check.