Squashed bugs and fixed lapses in logic, recieving now works for client.