Adding debug information to plugin