Add timeout to scripts