Added deck functoins