Moved a bunch of functions to definitions.cpp