Removed dependency on bash.