Store node mode and add function to retrieve all node modes.
Working on cluster modes