Improves memory management