Adding simple frontend interface. Fixing filter code.