Added discoveredCompounds function.