Getting a valid trace