+1000. Much better than an ugly switch statement