Binds the function to the SideComments instance

+ a little deduplication of code