- Use x() and defaults() to fix undefined indexes - Simplify boolean variables assignment - Add back undefined variables