The following functions are associated with the liver except