Made attribute search work