Adding file operations result checking.