Full Nonthreaded Function