Seems like this and the two other conditionals should be able to be condensed somehow.