Let's actually use the output callback to output variables instead of directly writing it