Adding the old code

See title