Update: added a root check, since this won't really work without root access