Pretty sure half of these checks aren't necessary.