Added return value to run function.