How about a hash instead of all the elifs?