Added ajax queue and timeout