Added final function