Most of snippet functionality complete