Implement the final plugin hooks