Appears to work correctly, but requires more testing.