AMD -> function plugin