Improved level generator