Adds waiting page and logic.