Move newToken to stop duplication. Need to find a more suitable home in future.