Changed plugin variables to d_ptr pointer.