Refreshing materials now works, materials now store names.