Further decompose the functions file