Add functions #thread and #threadLast