Removed unnecessary token function