Added filtering in code for firefox