1) Now properly assigning to different interfaces and ports.
2) Other bugfixes