Moved remaining slave logic to GTK plugin