Add advance function.