Added filtering input data