Added defrag_app