lib should be ignored
Refactored to use Date.now()