Set  parameter in Bag creation call to FALSE; shortened some long lines of code; removed comment about plugins.