Adding callbacks to container