Brayden edited search function