Added stack size limit.