Cleaned up prototype.