Move Output calculation into UDP.