Added the constructor with args to Ray.wq