I put all the stuff for getting the current folder in comments since the current folder is unused for now.