Deletion functionality working, not riguourosly tested.