Imported from Loggregator repo