Adding setData() and addData() to allow for modifying a resources data