Added support for fail status. #1