Added update dependencies method