Memory bitmap logic moved to class