Add check for root