Adding bash implementation