Added macro to control default stack size