Wrapped the ridiculously long if statement