Added run function.