Added logging to prototype.