Edited Delegate notifyEndCondition method to new API