Memory mapping fun and refactoring batching methods