Changes to factory, create functionality still not working