Interface for nc_write_attr and nc_read_attr added.