Update dependencies
Refactor asset method to remove duplicate code