Removed dep on ffi, using socket.sleep now instead