Fixed an incorrect field name in the SQL query.
Fixed an incorrect field name in the SQL query.
Added the trace delay parameter.
Added exams and tests.