Adding a few waits (waiting for Ajax)