added read(), and changed delete() to remove() to prevent clashes.