Updated nameplates logic to a more compact form that performs a lot better.