Added error flags