Update to provide support for a delegate
updated lib