Shell scripting stuff.