Bug Fix: Fix row count error bug.
Improve: Use header struct for easy reading.