Moved prototype out of closure.