Improving the batch susbscribe method and the corresponding rake task