System calls

Fixes #95. Fixes #96.