Initializing the functions