Formation of Heavy Elements