Added long polling "wait" parameter.