Improved actions in functions