Made the csh script more flexible.