I suck at shell scripting.
Better error messages.