Move check to earlier spot.