Changing assert to be slightly more relaxed.