Add once function.