Added ability to configure prototype dynamically.