Service Stub, most code is copied from server