Updated plugin hook