Used cerr in case of error