Using tokens and executing logic