Changed deleting, removed excess code.