Added return value when failed.