Creates data structure for 2D mode