Another mega fix + key implementation, still buggy though. Now on to proper network initialization.