Function refactoring - New minion task