Client Code - Multi-threading

Further improvement on various function calls and the structure of the
"listener" function.