Implemented "trace" function in the client to enable console communication between client and server