I did it the stupid way, through trial and error.