Removed unneeded main methods in Server and Client.