* md.c: Moved a couple of functions down below the data structure