Move Output calculation into UDP.
Merge pull request #9 from cdahmedeh/update-output-in-udp

Move Output calculation into UDP.