Adding rights check.