Dilutions and periodic table functions

This is all Tom's code. Blame him if it doesn't work.