Changing the run argument to be an object as its more flexible