Replaced conditional in Live.handle with dictionary.