Added function definitions to header.