Created two HashMaps to eliminate the need for two switch statements.