Updated to have insert and delete functionality.