Internal functions added.