Added nanoseconds support (fixed Issue #1)