Update and remove useless dependencies