Changed nanoseconds case to directly use take