Changed search function inputs