Updated the acf code