Completing F Fuction