Yeah, this stuff needs to be made systematic, currently it's a super-hacky chain of if statements.