2013 Update

Fixed 2012 code to work with 2013 plugins