Added the delete control and added comments.