Removed system call for Linux, which turns out to be slow.