Removed old event handler. Created a pipeline hook. Changed all Ids to Guids