Implemented ability to wait.