Implemented initial version of filter and filterAcc