Changed the map command to rely on the window size