Prefixed some variables with underscore to flag them as private