Few fixes in restricted macro.
Merge pull request #26 from edtsech/restricted

Few fixes in restricted macro.