Basic Implementation, cleanup, ctf