Use interfaces to set checking of lengths