changed sleeping from 10 to 30 secs