Add delete method and utility functions.