Added second prototype by Tom