Partial implementation of sys_access; needs a lot of work