Initialize the functions