Output function

control could be parsed