Added the other half of the folder update code