Speed up menu generation by using an array (#116)