Added callbacks to plugin registration