Setup factories, but not working yet