Pseudo-UDP implementation, bug fixes