Set proc inside new()