Adding essential resource flag to resource