Add actions function