Add update functonality to main class