Fixed a couple of linting issues, and moved the  array further up in the constructor to prevent timing issues