Added inline qualifiers to several functions.