Added static handler
Added maxthreads