Deleting unused functions