Remove filter function
Remove unused classes and constants
Get key_length automatically when not giving