Fixed the formatting of snippet. Did not test. Should be ok.