Changed to HashMaps for querying flag values
Added node management system