Update internals.R