Added filtering functionality, so that searching for gadgets is faster.