Discovered a bug. Needs testing.