Change to use assert method.