Horrible brute force solution to #31