Got tail call loop to work