Removing the extraneous, adding an encode filter