Working version of acs merge