Added a callback so access plot object