Added complete level array and debug print option.