Added option for middle-click action