Added more security for functions inside AdminCmd