Added error handling and tweet ordering