Better error checking.
Flipped some booleans like hot cakes.