Adding UDP functions