Trying to make a functionnal plugin