Changed all system calls to run with nanoseconds