Create an action based on history