Unnested the functions.