added run method.