Moving the functions that can be used to the lib.