Adding the run function