Added final function.