Didn't feel like doing iterative version.