Moved limit constraints to middleware