Added functions to the main file