Add comments and one check for errors.