Much better solution to ArgumentError.