Refactored 3, 5, num to lookup map