Added legacy Atomic class with deprecation warning.