New fix in the createNewToken function (it was lacking the return value ;) )