Restoring expanded search function