Add update meta logic