Added call to rebuildApp() after copy is made. Removed commented function.