Plugin create function