make time parameter configurable, reduce threads to 1