Admin functions updated