Add function definitions.
Fixed up module header.