Implemented Restrictions API
Optimized imports