Add trim to scope
Linked list cleanup