Remove debug and modify prototype factory.