Added function body for all control functions.
Fixing compiler errors, functions need parameter names