Changed network structure

Now uses hexadecimal value to determine the method following using a
switch case.