Beginning of entity setup.