Addded write_speed.sh