Added a delete_at function.