[-] Add max filter
[-] Fix errors
[-] Fix errors