Passing an instance of the container over to the events