Updated the unit of work