Reusable method, can go in `util.sh`...