Created replace method for minions