Adding the ability to control the forsearching attribute