Gets rid of pointless if/else statement