Adding functionality to function buttons.