I really hate shell scripting...