Added a few helper functions from bash-it