Added check for root