Adding setter for writing lambda