Update and rename functions to minion/functions