Capture token for funtions