Add delegate to allow for notifications when certain events happen