COde for Topne tautomation plugin