Refactored put like calls into a loop.