Put action in a function