Added function body for all control functions.

Now need to insert into hash table