I'm just wondering if theres a better way of doing this than this huge array of switches?