Adding a new method for size constraints

@wnagrodzki please take a look at this feature