Added stack trace for debugging