Converted UINT to INT for all required functions except in Directories