Added binary map generation.