Added support for other factories to access other factories values (implmented the 'generation' logic).