Upgraded to ACF 5 and changed functionality