Added the option to specify middle click and right click