Var name needs to be passed to factory