Wrote ttPluginEnabled() function.