Changes the output function to be more flexible, modifies the adapters to use new output function
Merge branch 'frontend-ui'