Updated functions and associated documentation.