Added min routines, idle time processing and dynamic resizing of the pool.