Added comments to helper 'routines.sh'.