Added restricted flag feature