Changed plugin from class to define.