Moved member functions from *.h to *.cpp.