Create_empty_function with option to include log and little updates