Rework Pie lastapp and search