Change to callback interface and remove raises() as that does not exist.