Filled out run function