Restrictions on use of devices