This whole thing needed to be rewritten! It doesn't make sense to me at all.