Add more documentation, use Date.now() instead of constructing throwaway Date objects.