Added get parent folder function