Arranging callback sequence for Flickr API calls.