Some error flags added

Adding error flags