Fixed the issues with the last commit, excluding tooltip replacement which I don't think I can do yet.