Add long polling support