Actions are now in functions.

Actions are now in functions to get more accessibility.