Added more intelligent echo, also added rm at last line to keep directory clean