The main plugin