Broke out bin logic. Much more testable