Rewrite stacktable plugin