Fixed the Delete method, and updated the GetPast, and GetNew methods to this new change, and fixed a possible security issue.