Sync is busted, get sync working and refactor for better grid length management.