A basic program to figure this weirdness out.