Add Run() function and test