Main functionality plagin