Simple z checking.