Added a function to refresh the attributes (for now only available for Projects)