Changed failed code to fail, so it is consistent with other codes.