Clean up to use prototypical inheritance for multiple instances.