Adds multiple page functionality on replace task.