Add new functions with logging. Add tests for them.
Use new functions in install.sh