Added basic autofactory.