Dependency updating and cleaning up methods