Refactored Relay Class to Spike and rewrote Relay Class