Using processory factory correctly