Added extend() to proto/register.