Added a delegate event handeler