Changed Z_THRESHOLD to 5.0