Updated HelperFunctions for 64bit support