Added mux for choosing active output line from function blocks
Corrections to enable proper mapping