Added delete layer. Not sure how I forgot to get that in there.