Adapt to prototype idiom.