Insanely messy network implementation...