Add opacity function adjustment