Added functionality to getQueue from server