Add function new. Thx for efficiency consideration from Daniel :).