Added linking stuff and made modules' outputs and inputs compatible.