Updated function "ARS"