Added more features to mapgen