Plugin code updated