Cleaning up ad code.