Added cluster master check