Fixed Usages of Depricated Node methods.