Added check to make sure delegate responds to new optional method before
trying to call it.