Increase stack from 384 bytes to 1024 bytes to prevent system halt