Kept attributesToUpdate as a separate var for debugging ease