Major fucking rewrite, reporting for duty.