Made some functions accept any enum