This is a builtin-ish function.