Add folder logic