Added functions to prevent undefined reference error