[Server] Using q for promise.