Changed createFolder method