Added checking for invalid warp factors.