Implemented completion notification to replace polling.