Prepare classes
Improve names lookup.
Fix classes.