Added functions for checking stack traces