Added a Function managing gui, and client/server function handling.