Added vararg in waiting for pages to load