Client and useful classes moved from Server