Added functions to header files