Changed raise to fail.