plugin function

Code to use the hesim package inline. Not directly called by the user.