Added timeouts. Kill process after 10 secs.