Improve put function.

Added functionalities like custom options, fallback mechanisms, and
multiple puts.