Added create global hot spare method
Refactored to allow multiple modes of operation.