Same function definitions as in the headerfile.