Substance base libraries