Added initialization routine to the entity context