Protein function and allostery: a dynamic relationship