Update function syntax in action examples