Pure Bash implementation concept