Updated ashci() function