Updated to work with ZeroMQ version 4