}\r
 }\r
 \r
-function Rotate-Backup {\r
+function Invoke-BackupRotation {\r
        if($keepMonths -lt 0) {\r
                return\r
        }\r
        }\r
 }\r
 \r
-function Rotate-Log {\r
+function Invoke-LogRotation {\r
        if($keepLogs -le 0) {\r
                return\r
        }\r
                                \r
                                if($errorMessages.Count -eq 0) {\r
                                        if($rotateBeforeBackup) {\r
-                                               Rotate-Backup\r
+                                               Invoke-BackupRotation\r
                                        }\r
                                        \r
                                        $dsLogPath = if($dsLogFileToBackup) { "$backupTargetFull\$dsLogFile" } else { $dsLogFile }\r
                                        }\r
                                        \r
                                        if($rotateBeforeBackup -eq $False -and $success -eq $True) {\r
-                                               Rotate-Backup\r
+                                               Invoke-BackupRotation\r
                                        }\r
                                }\r
                        }\r
        }\r
        \r
        # Rotate the log files\r
-       Rotate-Log\r
+       Invoke-LogRotation\r
+\r
 }\r
 \r
 # If there was any error message recorded, send a mail if configured\r