Changed details to use event object