Using Guard trait in ResourceManager