Modified run() to use new methods.