Upgrade dependencies to latest
Add convenience function to log and return a single value