Make size of binary detection configurable