Fixed bug to allow multiple snippet calls to work by clearing old output